package com.landian.sell.controller;

import com.landian.sell.service.DataService;
import com.landian.sell.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author caojl
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private DataService dataService;

    @GetMapping("/list")
    public List<ResultVO> list() {
        return dataService.tempList();
    }
}
